package deepbrain.simnetwork.structure;

import deepbrain.simnetwork.exception.SimNetworkException;

/**
 * 
 *
 * @author Li Yang
 * @create 2009-2-22
 */
public class WeightedConnectionMatrix extends ConnectionMatrix<Double> {

	private int doubleScale = 3;
	
	private static final long serialVersionUID = -2056509528164914077L;

	public WeightedConnectionMatrix() {
		super();
		NO_CONNECTION_SYMBOL = "#";
	}
	
	public WeightedConnectionMatrix(Double[][] matrix) throws SimNetworkException {
		super(matrix);
		NO_CONNECTION_SYMBOL = "#";
	}
	
	public WeightedConnectionMatrix(String parseLine) throws SimNetworkException {
		super(parseLine);
	}
	
	public void setDoubleScale(int doubleScale) {
		this.doubleScale = doubleScale;
	}

	public int getDoubleScale() {
		return doubleScale;
	}

	@Override
	public Double parseWeight(String weight) {
		return Double.parseDouble(weight);
	}

}
